package cn.kgc.service;

import cn.kgc.mapper.Goods_DetailMapper;
import cn.kgc.pojo.Goods_Detail;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class Goods_DetailServiceImpl implements Goods_DetailService{
    @Autowired
    Goods_DetailMapper goods_detailMapper;
    @Override
    public List<Goods_Detail> selectALlDetail(Integer sortId) {
        return goods_detailMapper.getALlDetail(sortId);
    }

    @Override
    public List<Goods_Detail> selectDetailId(Integer id) {
        return goods_detailMapper.getDetailId(id);
    }

    @Override
    public Integer updateDetail(Goods_Detail goods_detail) {
        return goods_detailMapper.updateDetail(goods_detail);
    }
}
